html,
body {
    margin: 0;
    padding: 0 5px;
}


/**xbrl定义*/

.xmlBlock {
    overflow: visible;
    margin-left: 0;
    border-left: dotted 1px #333;
    padding-left: 2rem;
    background-color: #fff;
    background-clip: initial;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

body>.xmlBlock {
    margin-left: 1rem;
    border-left: solid 1px #333;
    padding-left: 1rem;
    position: relative;
}

body>.xmlBlock>.xmlBlock {
    border-left: none;
}

.attr {
    display: inline-block;
}

.xmlBlock>.attr::nth-last-child(0) {
    display: inline;
    background-color: red;
}

.attrName {
    color: red;
}

.attrValue {
    color: purple;
}

.attrValue::before {
    content: "=";
}

.nodeName {
    color: blue;
}

.textValue {
    color: black;
}

.plus:before {
    content: "-";
    border: solid 1px;
    display: inline-block;
    position: absolute;
    left: -6px;
    width: 10px;
    height: 10px;
    line-height: 8px;
    background-color: #fff;
    /*对齐上边缘*/
    margin-top: 6px;
}


/*折叠后*/

.fold {
    border-bottom: solid 1px #333;
}

.fold>.plus:before {
    content: "+";
}

.fold>.xmlBlock {
    display: none;
}

.fold .nodeName:last-child::before {
    content: "..."
}


/**页面定义*/

.xbrl-selected {
    font-weight: bolder;
    background-color: #ddd;
    animation: flash 1s ease 1s 3;
}

.xbrl-selected.xbrl-selected-first::before {
    content: ">>";
    width: 20px;
    margin-left: -20px;
    background: #fff;
    display: inline-block;
}

@keyframes flash {
    from {
        background: #ddd;
        font-weight: 100;
    }
    50% {
        background: #fff;
        font-weight: bolder;
    }
    to {
        background: #ddd;
        font-weight: 100;
    }
}